package cn.wjj.basic.basequery;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    private Integer currentPage = 1;

    //每页显示的条数
    private Integer PageSize = 5;

    //关键字查询
    private String keyword;

    //计算limit的第一个参数
    public Integer getStart(){
        return (currentPage - 1)*PageSize;
    }
}
